<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\UserLikeRepository")
 */
class UserLike
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="integer")
     */
    private $who;

    /**
     * @ORM\Column(type="integer")
     */
    private $what;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $flag;

    /**
     * @ORM\Column(type="string", length=32)
     */
    private $addtime;

    public function getId()
    {
        return $this->id;
    }

    public function getWho(): ?int
    {
        return $this->who;
    }

    public function setWho(int $who): self
    {
        $this->who = $who;

        return $this;
    }

    public function getWhat(): ?int
    {
        return $this->what;
    }

    public function setWhat(int $what): self
    {
        $this->what = $what;

        return $this;
    }

    public function getFlag(): ?string
    {
        return $this->flag;
    }

    public function setFlag(?string $flag): self
    {
        $this->flag = $flag;

        return $this;
    }

    public function getAddtime(): ?string
    {
        return $this->addtime;
    }

    public function setAddtime(string $addtime): self
    {
        $this->addtime = $addtime;

        return $this;
    }
}
